from django.db import models
# Create your models here.


class ProjectInfo(models.Model):
    name = models.CharField(max_length=50, unique=True)
    desc = models.CharField(max_length=200, help_text='项目描述', null=True)
    type = models.CharField(max_length=10, help_text='项目管理类型', default='UI')
    browser_list = (
        ('Chrome', 'chrome'),
        ('Edge', 'edge'),
        ('Firefox', 'firefox'),
        ('Ie', 'ie'),
        ('Safari', 'safari'),
        ('Opera', 'opera')
    )
    env_browser = models.CharField(max_length=10, choices=browser_list, null=True)
    env_client = models.ForeignKey(to='client.ClientInfo', on_delete=models.SET_NULL, null=True)
    process_num = models.IntegerField(default=1)
    url = models.CharField(max_length=100, null=False)
    timeout = models.IntegerField(help_text='全局超时时间')

